<template>
	<view>
		<!-- 选择标题3 -->
		<view class="xuanzezhangjiexbi mainpadding2">
			<view class="mainpadding ffffff flexbetween margin_top radius box" v-for="item in list" :key="item.id"
				@click="jumpurl(item.id)">
				<view class="jichuban">{{item.name}}</view>
				<view class="icon">
					<image src="../../static/image/system/righticon.png" mode=""></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				listid:"",
				list:[]
			}
		},
		onLoad(options) {
			this.listid = options.id
			// this.init()
			this.getlist()
		},
		methods: {
			getlist(){
				httpRequest.request("/api/quizz_headline/lists", 'POST', {
					chapter_id:this.listid
				}, false, false, true).then(res => {
					this.list = res.data
				})
			},
			jumpurl(id) {
				uni.navigateTo({
					url: "/pages/homepage/xuanzezhangjiexbtjx?id="+id
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.jichuban {
		font-size: 30rpx;
		font-family: Microsoft YaHei;
		font-weight: bold;
	}

	.icon {
		margin-bottom: 14rpx;
		width: 14rpx;
		height: 24rpx;

		image {
			width: 100%;
			height: 100%;
		}
	}

	.box {
		box-shadow: 0rpx 0rpx 15rpx 0rpx rgba(51, 51, 51, 0.0500);
	}
</style>
